1 package org.naftulin.classpathexplorer.dublicate.imlp;
2
3 import java.io.File;
4
5 import org.naftulin.classpathexplorer.AccessibleResource;
6
7 /***
8 * Represents a War - archive for accessible resources. Unsupported right now,
9 * we cannot deal with archived war files yet...
10 * @author henry naftulin
11 * @version 0.1
12 */
13 class WarArchive extends AccessibleArchive {
14
15 public WarArchive(File file) {
16 super(file);
17 }
18
19 /***
20 * @exception UnsupportedOperationException not yet supported.
21 */
22 public AccessibleResource[] getAccessibleResources() {
23 throw new UnsupportedOperationException("Not yet supported");
24 }
25
26 /***
27 * Returns the string representation of the resource.
28 * @return the string representation of the resource.
29 */
30 public String toString() {
31 StringBuffer sb = new StringBuffer(100);
32 sb.append("War Archive[");
33 sb.append(super.toString());
34 sb.append("]\n");
35 return sb.toString();
36 }
37
38 /***
39 * Returns the xml representation of the resource.
40 * @return the xml representation of the resource.
41 */
42 public String toXml() {
43 StringBuffer sb = new StringBuffer(100);
44 sb.append("<warArchive ");
45 sb.append(super.toString());
46 sb.append("/>\n");
47 return sb.toString();
48 }
49 }